package com.jhgsys.internal.incentive.service;

import com.jhgsys.internal.incentive.entity.IncentiveQuotaGoods;
import com.jhgsys.internal.common.entity.QueryRequest;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 *  Service接口
 *
 * @author zhangwei
 * @date 2024-09-02 10:39:13
 */
public interface IIncentiveQuotaGoodsService extends IService<IncentiveQuotaGoods> {
    /**
     * 查询（分页）
     * @author zhangwei
     * @date 2024-09-02 10:39:13
     * @param request QueryRequest
     * @param incentiveQuotaGoods incentiveQuotaGoods
     * @return IPage<IncentiveQuotaGoods>
     */
    IPage<IncentiveQuotaGoods> findIncentiveQuotaGoodsPage(QueryRequest request, IncentiveQuotaGoods incentiveQuotaGoods);

    /**
     * 查询（所有）
     * @author zhangwei
     * @date 2024-09-02 10:39:13
     * @param incentiveQuotaGoods incentiveQuotaGoods
     * @return List<IncentiveQuotaGoods>
     */
    List<IncentiveQuotaGoods> findIncentiveQuotaGoodsList(IncentiveQuotaGoods incentiveQuotaGoods);

    /**
    * 根据ID查询
    * @author zhangwei
    * @date 2024-09-02 10:39:13
    * @param id
    * @return IncentiveQuotaGoods
    */
    IncentiveQuotaGoods findIncentiveQuotaGoodsById(String id);

    /**
     * 新增
     * @author zhangwei
     * @date 2024-09-02 10:39:13
     * @param incentiveQuotaGoods incentiveQuotaGoods
     */
    void createIncentiveQuotaGoods(IncentiveQuotaGoods incentiveQuotaGoods);

    /**
     * 修改
     * @author zhangwei
     * @date 2024-09-02 10:39:13
     * @param incentiveQuotaGoods incentiveQuotaGoods
     */
    void updateIncentiveQuotaGoods(IncentiveQuotaGoods incentiveQuotaGoods);

    /**
     * 逻辑删除
     * @author zhangwei
     * @date 2024-09-02 10:39:13
     * @param incentiveQuotaGoods incentiveQuotaGoods
     * @param incentiveQuotaGoodsIds incentiveQuotaGoodsIds
     */
    void deleteIncentiveQuotaGoods(IncentiveQuotaGoods incentiveQuotaGoods,String incentiveQuotaGoodsIds);

    /**
    * 物理删除
    * @author zhangwei
    * @date 2024-09-02 10:39:13
    * @param incentiveQuotaGoodsIds incentiveQuotaGoodsIds
    */
    void physicallyDeleteIncentiveQuotaGoods(String incentiveQuotaGoodsIds);

    /**
     * 删除开单人设计其下对应奖品，逻辑删除
     * @param configId
     */
    void deleteInceniveQUatGoodsById(String configId,String currentUser);
}
